# Create your views here.
from django.template import loader,Context
from django.http import HttpResponse
from mycydia.blog.models import BlogPosts

def archive(request):
    posts = BlogPosts.objects.all()
    t = loader.get_template('archive.html')
    c = Context({ 'posts':posts })
    return HttpResponse(t.render(c))